use core::panic::PanicInfo;

use crate::{println, processor::cpu_relax};

#[panic_handler]
fn panic_handler(info: &PanicInfo) -> ! {
    println!("panic! {:?} {:?}\n", info.location(), info.message());
    loop {
        cpu_relax();
    }
}
